using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;

namespace TireService.Web.Reports.Design
{
    public partial class TaskDetailReport : DevExpress.XtraReports.UI.XtraReport
    {
        public TaskDetailReport()
        {
            InitializeComponent();
        }

        public int TaskId;

        private void TaskDetailReport_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            // Bind report data to page
            Reports.Data.ReportData rdReportData = new Reports.Data.ReportData();
            this.bindingSource1.DataSource = rdReportData.GetTaskDetail(TaskId);
        }

    }
}
